<table cellpadding="3" cellspacing="1" class="table table-bordered table-hover" id="list-table">

    <thead>
    <tr>
        <th style="text-align: center">用户ID</th>
        <th style="text-align: center">就诊人ID</th>
        <th style="text-align: center">就诊人姓名</th>
        <th style="text-align: center">性别</th>
        <th style="text-align: center">生日</th>
        <th style="text-align: center">年龄</th>
        <th style="text-align: center">操作</th>
    </tr>
    </thead>
<#if (patientList?size>0) >
    <#list  patientList as patient>
        <tbody>
        <tr>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (patient.userid)??>
                    ${patient.userid?c}
                </#if>
            </td>
            <td align="center" valign="top" nowrap="nowrap">
                <#if (patient.patientid)??>
				 ${patient.patientid?c}
				</#if>
            </td>

            <td align="center" valign="top" nowrap="nowrap">
                <#if (patient.patientName)??>
				 ${patient.patientName}
				</#if>
            </td>


            <td align="center" valign="top" nowrap="nowrap">
                <#if (patient.sex)??>
                ${patient.sex}
                </#if>
            </td>

            <td align="center" valign="top" nowrap="nowrap">
                <#if (patient.birthdayDate)??>
                    生日
                </#if>
            </td>

            <td align="center" valign="top" nowrap="nowrap">
                <#if (patient.birthdayDate)??>
                    年龄
                </#if>
            </td>

            <td align="center">
                <a href="../privilege/getUserById?patient=${(patient.patientid)?c}">编辑</a>|
                <a onclick="{if(confirm('你确定要删除吗')){return true;}return false;}"
                   href="../privilege/deleteUserById?patient=${(patient.patientid)?c}">删除</a>

            </td>
        </tr>
        </tbody>
    </#list>
</#if>


</table>
<script type="text/javascript">
    listTable.action = "<%=basePath%>/privilege/ajaxQueryUser.action";
    listTable.currentPage =${(page.currentPage)?c};
    listTable.pageCount =${(page.totalPage)?c};
    listTable.recordCount =${(page.allRow)?c};
</script>

<table id="page-table" cellspacing="0">
    <tr>
        <td align="right" nowrap="true">
            <div id="turn-page">
                共<span id="totalRecords">${page.allRow} </span>条记录&nbsp;
                共<span id="totalPages">${page.totalPage}</span> 页&nbsp;
                当前第<span id="pageCurrent">${page.currentPage}</span>页&nbsp;

                每页显示记录条数 <input type='text' size='3' id='pageSize' value="${page.pageSize}"
                                onkeypress="return listTable.changePageSize(event)"/>
                <!--分页操作-->
                <input type='hidden' size='3' id='action' value="ajaxQueryUser.action"/>

                <span id="page-link">
                    <a href="javascript:listTable.gotoPageFirst()">第一页</a>
                    <a href="javascript:listTable.gotoPagePrev()">前一页</a>
                    <a href="javascript:listTable.gotoPageNext()">下一页</a>
                    <a href="javascript:listTable.gotoPageLast()">最后一页</a>
                </span>
            </div>
        </td>

    </tr>
</table>
